package com.shigui.news.dao;

import java.util.List;


import com.shigui.news.model.Category;
import com.shigui.news.model.News;

public interface NewsDao {

	News selectById(Integer newsId);
	List<News> select();
	void insert(News news);
	void update(News news);
	void delete(News news);
//	News findByPersistCode(String persistCode);
	/**
	 * fenye
	 */
	List<News> getNewsList(Category category, Integer page, Integer count);
	
	Integer countNewsList(Category category);
	
	void updateNum(News news);
}
